const _import = require('./_import_' + process.env.NODE_ENV);
const routes = [
  {
    path: '/',
    name: 'main',
    component: _import('main')
  },
  {
    path: '/login',
    name: 'login',
    component: _import('login')
  },
  {
    path: '/singup',
    name: 'singup',
    component: _import('singup')
  },
  {
    path: '/',
    name: 'user',
    component: _import('user'),
    children: [
      {
        path: '/user/email',
        name: 'user_email',
        component: _import('user/email')
      },
      {
        path: '/user/bank',
        name: 'user_bank',
        component: _import('user/bank')
      },
      {
        path: '/user/wechat',
        name: 'user_wechat',
        component: _import('user/wechat')
      },
      {
        path: '/user/alipay',
        name: 'user_alipay',
        component: _import('user/alipay')
      },
      {
        path: '/user/pass',
        name: 'user_pass',
        component: _import('user/pass')
      },
      {
        path: '/user/pass/change',
        name: 'user_pass_change',
        component: _import('user/pass-change')
      },
      {
        path: '/user/trade',
        name: 'user_trade',
        component: _import('user/trade-pass')
      },
      {
        path: '/user/phone',
        name: 'user_phone',
        component: _import('user/phone')
      },
      {
        path: '/user/phone/change',
        name: 'user_phone_change',
        component: _import('user/phone-change')
      },
      {
        path: '/user/realname',
        name: 'user_realname',
        component: _import('user/realname')
      }
    ]
  },
  {
    path: '/msg',
    name: 'msg_list',
    component: _import('msg/list')
  },
  {
    path: '/msg/detail',
    name: 'msg_detail',
    component: _import('msg/detail')
  },
  {
    path: '/c2c',
    name: 'c2c',
    component: _import('c2c'),
    children: [
      {
        path: '/c2c',
        name: 'c2c_list',
        component: _import('c2c/list')
      },
      {
        path: '/c2c/detail',
        name: 'c2c_detail',
        component: _import('c2c/detail')
      },
      {
        path: '/c2c/advert',
        name: 'c2c_advert',
        component: _import('c2c/advert')
      }
    ]
  },
  {
    path: '/asset',
    name: 'asset',
    component: _import('asset'),
    children: [
      {
        path: '/asset',
        name: 'asset_list',
        component: _import('asset/list')
      },
      {
        path: '/asset/recharge',
        name: 'asset_recharge',
        component: _import('asset/recharge')
      },
      {
        path: '/asset/withdraw',
        name: 'asset_withdraw',
        component: _import('asset/withdraw')
      },
      {
        path: '/asset/record',
        name: 'asset_record',
        component: _import('asset/record')
      },
      {
        path: '/asset/record/detail',
        name: 'asset_record_detail',
        component: _import('asset/record-detail')
      }
    ]
  },
  {
    path: '/manage',
    name: 'manage',
    component: _import('manage'),
    children: [
      {
        path: '/manage',
        name: 'manage_entrust',
        component: _import('manage/entrust')
      },
      {
        path: '/manage/order',
        name: 'manage_order',
        component: _import('manage/order')
      }
    ]
  },
  {
    path: '/coins',
    name: 'coins',
    component: _import('coins'),
    children: [
      {
        path: '/coins',
        name: 'coins_list',
        component: _import('coins/list')
      },
      {
        path: '/coins/detail',
        name: 'coins_detail',
        component: _import('coins/detail')
      }
    ]
  }
];
export default routes;